package com.itgungnir.designpattern.observer.system;

import java.util.Observable;

public class NewsOffice extends Observable {

	public void setNews(String news) {
		System.out.println("报社发布了新闻：" + news);
		super.setChanged();
		super.notifyObservers(news);
	}
}